# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=cpdb-backend-cups
pkgver=2.0b1
pkgrel=1
pkgdesc="CUPS Backend for the common printing dialog "
arch=('x86_64')
url="https://github.com/OpenPrinting/cpdb-backend-cups"
license=('MIT')
depends=('cpdb-libs' 'libcups')
source=($url/releases/download/$pkgver/cpdb-backend-cups-$pkgver.tar.gz)
sha256sums=('24b2365a4c4eead524162efca5211fbae67b5531bfa923818caee6a71a0d07eb')
#validpgpkeys=()

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
